#include "platform.h"
volatile uint32_t g_MotorDelayCnt;
volatile uint32_t g_DisplayDelayCnt;
volatile uint32_t g_MotorStartCnt;//自适应负载启动计数器
volatile uint32_t g_DutySetCnt;
volatile uint8_t g_MotorSwitchCnt;
volatile uint16_t g_LockCurrentCnt;//堵转电流保护计数器
volatile uint16_t g_LockPhaseCnt;//堵转相位保护计数器

uint32_t u32GetLockCurrentCnt(void)
{
    return g_LockCurrentCnt;
}

void setLockCurrentCnt(uint32_t value)
{
    g_LockCurrentCnt = value;
}

uint32_t u32GetLockPhaseCnt(void)
{
    return g_LockPhaseCnt;
}

void setLockPhaseCnt(uint32_t value)
{
    g_LockPhaseCnt = value;
}

uint32_t u32GetMotorDelayCnt(void)
{
    return g_MotorDelayCnt;
}

void setMotorDelayCnt(uint32_t value)
{
    g_MotorDelayCnt = value;
}

uint32_t u32GetDisplayDelayCnt(void)
{
    return g_DisplayDelayCnt;
}

void setDisplayDelayCnt(uint32_t value)
{
    g_DisplayDelayCnt = value;
}

uint32_t u32GetMotorStartCnt(void)
{
    return g_MotorStartCnt;
}

void setMotorStartCnt(uint32_t value)
{
    g_MotorStartCnt = value;
}

uint32_t u32GetDutySetCnt(void)
{
    return g_DutySetCnt;
}

void setDutySetCnt(uint32_t value)
{
    g_DutySetCnt = value;
}

void setMotorSwitchCnt(uint32_t value)
{
    g_MotorSwitchCnt = value;
}

uint8_t u8GetMotorSwitchCnt(void)
{
    return g_MotorSwitchCnt;
}
